From: Colin Walters Date: Tue, 12 Apr 2011 21:29:05 +0000 (-0400) Subject: ShellWindowTracker: Follow transients for focus app X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~8343 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=db6caac9cc0c0691e4dc4253665f1293e4b86414;p=gnome-shell.git ShellWindowTracker: Follow transients for focus app As a side effect of (see bug 642221), we no longer put docks or transient windows into the hash table mapping windows to apps. The "focused application" code relied on at least transients being in there. Fix this by calling the public API to map a window to an app, which will at least follow transients. Whether we also want further matching here (e.g. with window grouping) is another issue, but that can happen as a different bug. https://bugzilla.gnome.org/show_bug.cgi?id=647082 --- diff --git a/src/shell-window-tracker.c b/src/shell-window-tracker.c index 44a4a48e3..9b24cdc0a 100644 --- a/src/shell-window-tracker.c +++ b/src/shell-window-tracker.c @@ -886,7 +886,7 @@ on_focus_window_changed (MetaDisplay *display, ShellApp *new_focus_app; new_focus_win = meta_display_get_focus_window (display); - new_focus_app = new_focus_win ? g_hash_table_lookup (tracker->window_to_app, new_focus_win) : NULL; + new_focus_app = new_focus_win ? shell_window_tracker_get_window_app (tracker, new_focus_win) : NULL; set_focus_app (tracker, new_focus_app); }